{% extends 'base.html' %}
{% block title %}
    逐梦资源论坛-登录
{% endblock %}

{% block link %}
    <style>
        html,body{
            background: url("/static/image/meinv.jpg") center/cover;

        }
        label {
            color: white;
            font-weight: bold;
        }

        .loging {
            margin-top: 30px;
        }

        .loging-all p {
            font-weight: bold;
        }
    </style>
{% endblock %}

{% block content %}
    <div class="container loging-all" style="margin-top: 100px">
        <div class="row mt-4" style="height: 500px;">
            <div class="col"></div>
            <div class="col">
                <form method="POST" id="myform">
                    <div class="form-group">
                        <label for="exampleInputEmail1">邮箱</label>
                        <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"
                               name="email">
                        <p id="error_email" style="color: red"></p>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">密码</label>
                        <input type="password" name="password" class="form-control" id="exampleInputPassword1">
                        <p id="error_password" style="color: red"></p>
                    </div>

                    <div class="form-group">
                        <label for="exampleInputPassword1">验证码</label>
                        <div class="row">
                            <div class="col-md-9">
                                <input type="password" name="code" class="form-control" id="exampleInputPassword1">
                            </div>
                            <div class="col-md-3">
                                <img class="onlogin" src="/user/vcode" alt=""
                                     style="width: 100%;height: calc(1.5em + 0.75rem + 2px)">
                            </div>
                        </div>
                        <p id="error_vcode" style="color: red;"></p>
                    </div>


                    <div class="form-group loging">
                        <button type="submit" class="btn btn-primary btn-block onlogin">立即登录</button>
                    </div>
                </form>
            </div>
            <div class="col"></div>
        </div>
    </div>
{% endblock %}

{% block bottom %}

    <script src="../../static/js/auth/login.js"></script>

{% endblock %}

